#ifndef OBSTACLESMANAGER_H
#define OBSTACLESMANAGER_H

#include <vector>
#include <utility>

class ObstaclesManager
{
public:
    // 构造函数和析构函数
    ObstaclesManager() {}
    ~ObstaclesManager() {}

    // 插入新的路径点
    void AddObstaclesPoint(const std::pair<double, double>& point)
    {
        map_coordinates.push_back(point);
    }

    // 获取所有路径点
    std::vector<std::pair<double, double>> GetObstaclesPoints() const
    {
        return map_coordinates;
    }

    // 获取路径点数量
    size_t GetObstaclesPointsSize() const
    {
        return map_coordinates.size();
    }

private:
    // 路径点存储
    std::vector<std::pair<double, double>> map_coordinates;
};

#endif // OBSTACLESMANAGER_H